//
// CMRMAttribute.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.CVectorH;

public class CMRMAttribute {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CMRMAttribute(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CMRMAttribute obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CMRMAttribute(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setCurrent(CVectorH value) {
    nel3dJNI.CMRMAttribute_Current_set(swigCPtr, this, CVectorH.getCPtr(value), value);
  }

  public CVectorH getCurrent() {
    return new CVectorH(nel3dJNI.CMRMAttribute_Current_get(swigCPtr, this), true);
  }

  public void setOriginal(CVectorH value) {
    nel3dJNI.CMRMAttribute_Original_set(swigCPtr, this, CVectorH.getCPtr(value), value);
  }

  public CVectorH getOriginal() {
    return new CVectorH(nel3dJNI.CMRMAttribute_Original_get(swigCPtr, this), true);
  }

  public void setBSCurrent(SWIGTYPE_p_std__vectorT_CVectorH_t value) {
    nel3dJNI.CMRMAttribute_BSCurrent_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_CVectorH_t.getCPtr(value));
  }

  public SWIGTYPE_p_std__vectorT_CVectorH_t getBSCurrent() {
    long cPtr = nel3dJNI.CMRMAttribute_BSCurrent_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_CVectorH_t(cPtr, false);
  }

  public void setCollapsedTo(int value) {
    nel3dJNI.CMRMAttribute_CollapsedTo_set(swigCPtr, this, value);
  }

  public int getCollapsedTo() {
    return nel3dJNI.CMRMAttribute_CollapsedTo_get(swigCPtr, this);
  }

  public void setCoarserIndex(int value) {
    nel3dJNI.CMRMAttribute_CoarserIndex_set(swigCPtr, this, value);
  }

  public int getCoarserIndex() {
    return nel3dJNI.CMRMAttribute_CoarserIndex_get(swigCPtr, this);
  }

  public void setInterpolatedFace(int value) {
    nel3dJNI.CMRMAttribute_InterpolatedFace_set(swigCPtr, this, value);
  }

  public int getInterpolatedFace() {
    return nel3dJNI.CMRMAttribute_InterpolatedFace_get(swigCPtr, this);
  }

  public void setNbSharedFaces(int value) {
    nel3dJNI.CMRMAttribute_NbSharedFaces_set(swigCPtr, this, value);
  }

  public int getNbSharedFaces() {
    return nel3dJNI.CMRMAttribute_NbSharedFaces_get(swigCPtr, this);
  }

  public void setShared(boolean value) {
    nel3dJNI.CMRMAttribute_Shared_set(swigCPtr, this, value);
  }

  public boolean getShared() {
    return nel3dJNI.CMRMAttribute_Shared_get(swigCPtr, this);
  }

  public CMRMAttribute() {
    this(nel3dJNI.new_CMRMAttribute(), true);
  }

}
